<div class="view ui-corner-all">
	
	<b>Packing list reference:</b> 
	<?php echo CHtml::link(CHtml::encode($data->ref),array('view', 'id'=>$data->id)); ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('date')); ?>:</b>
	<?php echo CHtml::encode(Yii::app()->format->formatDate($data->date)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('handling_agent')); ?>:</b>
	<?php echo ($data->handlingAgent!=null)?CHtml::link(CHtml::encode($data->handlingAgent->cname),array('/company/view','id'=>$data->handlingAgent->id)):'Not set'; ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('clearing_agent')); ?>:</b>
	<?php echo ($data->clearingAgent!=null)?CHtml::link(CHtml::encode($data->clearingAgent->cname),array('/company/view','id'=>$data->clearingAgent->id)):'Not set'; ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('notify_party')); ?>:</b>
	<?php echo ($data->notifyParty!=null)?CHtml::link(CHtml::encode($data->notifyParty->cname),array('/company/view','id'=>$data->notifyParty->id)):'Not set'; ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('shipping_line')); ?>:</b>
	<?php echo ($data->shippingLine!=null)?CHtml::link(CHtml::encode($data->shippingLine->cname),array('/company/view','id'=>$data->shippingLine->id)):'Not set'; ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('pol')); ?>:</b>
	<?php echo CHtml::encode($data->pol); ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('pod')); ?>:</b>
	<?php echo CHtml::encode($data->pod); ?>
	<br />
	
	<b><?php echo CHtml::encode($data->getAttributeLabel('subject')); ?>:</b>
	<?php echo CHtml::encode($data->subject); ?>
	<br />
		
	<b><?php echo CHtml::encode($data->getAttributeLabel('attn')); ?>:</b>
	<?php echo CHtml::encode($data->attn); ?>
	<br />	
</div>